package me.weijing.common.widget;

import me.weijing.common.R;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

public class ShowDialog extends Dialog {
    private TextView progress;

    public ShowDialog(Context context) {
        super(context);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.show_progress);
        progress = (TextView) findViewById(R.id.progress);
    }

    public void setContent(int prog) {
        progress.setText(prog + "%");
    }
}
